
package com.suarte.webapp.action;

import java.io.Serializable;
import java.util.List;
import org.appfuse.service.GenericManager;

/**
 * @date   Jan 04, 2011
 * @author Gcastillo
 */
public class PaymentTypeList extends BasePage implements Serializable {
    private GenericManager paymentTypeManager;

    public void setPaymentTypeManager(GenericManager paymentTypeManager) {
        this.paymentTypeManager = paymentTypeManager;
    }

    public PaymentTypeList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getPaymentTypes() {
        return sort(paymentTypeManager.getAll());
    }
}